package cn.lingyangwl.agile.infra.file.modle.rqrs;

import cn.lingyangwl.agile.model.constants.ValidationCons;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author shenguangyang
 */
@Data
public class UploadFileReq {
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String bizType;

    @NotNull(message = ValidationCons.NOT_EMPTY)
    private MultipartFile file;

    /**
     * 原来的url, 如果该值不为空, 即会覆盖文件
     */
    private String originUrl;

    /**
     * 原来url签名
     */
    private String urlSign;;
}
